<%@ page language="java" contentType="text/html; charset=UTF-8"
	import="java.util.*,com.pub.tools.*,com.pub.check.logon.*"%>
<%

  UserLoginValid uldCheck = null;
  PropertyBean ptyWebConfig = null;
  String strCookieList = null;
  String strDomain = request.getServerName().indexOf(".") != -1 ? request.getServerName().substring(request.getServerName().indexOf(".") + 1, request.getServerName().length()) : request.getServerName();

  try{
    request.getSession().setAttribute("u_id",null);
    request.getSession().setAttribute("path",null);
    request.getSession().setAttribute("param",null); //If no parameter then must set null

    session.setAttribute("u_id",null);
    session.setAttribute("path",null);
    session.setAttribute("param",null); //If no parameter then must set null

    session.removeAttribute("u_id");

    ptyWebConfig = new PropertyBean(ResourceBundle.getBundle("WEB_Config",Locale.getDefault()));

    strCookieList = ptyWebConfig.getString("COOKIE_NAME");

    uldCheck = new UserLoginValid(ptyWebConfig.getString("CHECK_TYPE"));

    uldCheck.clearCookieValue(response,strDomain,strCookieList,",");
  }
  catch (Exception e) {
    //strLoginResult="login fail";
    e.printStackTrace();
  }
  finally {
    if(uldCheck!=null){
      uldCheck.clearData();
    }
    uldCheck = null;
    ptyWebConfig = null;
  }
%>
<html>
<body onload="javascript:window.location.href='index.jsp'">
</body>
</html>
